import router from "@/plugins/router"
import {Dictionary} from "vue-router/types/router"

export default class RouterUtils {
  public static routerTo(routerName: string, params?: Dictionary<string>): void {
    return router.push({name: routerName, params: params})
  }

  public static goBack(): void {
    return router.go(-1)
  }
}
